package com.trio.zjq.service;

import com.trio.zjq.dao.impl.BookInfoDaoImpl;
import com.trio.zjq.entity.BookInfo;
import org.junit.Test;

import java.util.List;

/**
 * 用户拥有的图书的业务逻辑处理.
 *
 * @author 张俊强~.
 * @date 2017/11/22-10:07.
 */
public class BookInfoService {

    @Test
    public void testGetSession() {
        BookInfoDaoImpl bookInfoDao=new BookInfoDaoImpl();
        List<BookInfo> bookInfoList=bookInfoDao.findBookListByUserInfo(1);
        for(BookInfo bookInfo :bookInfoList){
            System.out.println("bookInfo->"+bookInfo.toString());
        }
    }

}
